package com.fira;

import com.fira.api.domain.dto.StuRegistrationDTO;
import com.fira.edu.domain.*;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author henryGui
 * @version V1.0
 * @Title: StudentData
 * @Package com.fira
 * @Description: TODO
 * @date 2021-10-12 下午6:06
 */

public class StudentData {

    public static StuRegistrationDTO buildData(){
        StuRegistrationDTO dto = new StuRegistrationDTO();


        EduStudent student = new EduStudent();
        student.setStudentName("张晓");
        student.setStudentNickName("明明");
        student.setStudentGrade("1");
        student.setStudentSchool("万婴幼儿园学校");
        student.setStudentAddress("万婴");
        student.setStudentFlag("STU01");//标签 普通学员
        student.setStudentBirthday(new Date());
        student.setStudentNickName("鹿1鹿");
        student.setStudentChannel("LY01"); //来源 地摊
        student.setStudentGrade("中班");
        student.setStudentSex("1");


        //家长信息
        EduParent eduParent=new EduParent();
        eduParent.setParentPhone("17775998630");
        eduParent.setParentWechat("sdfsdafasd");
        eduParent.setParentName("爸爸");
        //家长信息
        EduParent eduParent1=new EduParent();
        eduParent1.setParentPhone("18600165791");
        eduParent1.setParentWechat("sdfsdafasd");
        eduParent1.setParentName("爷爷");
        List<EduParent> parentList=new ArrayList<>();
        parentList.add(eduParent);
        parentList.add(eduParent1);

        //接送时间
        EduStudentTakes studentTakes=new EduStudentTakes();
        studentTakes.setSendTime(new Date().toString());
        studentTakes.setReceiveTime(new Date().toString());
        List<EduStudentTakes> takesList=new ArrayList<>();
        takesList.add(studentTakes);

        //选择课程
        EduStudentCourse course=new EduStudentCourse();
        course.setCourseId("");//选择课程id
        course.setSignUpType("BK01");//报课类型
        course.setChargeType("SF01");//收费方式
        course.setPackageId("TC01");//根据所选课程带出来的选项值 套餐
        course.setClassId("");//班级
        course.setStartPeriodTime(new Date());//有效期开始
        course.setEndPeriodTime(new Date());//有效期结束

        course.setBuyClassHours(200);//购买课时
        course.setGiveClassHours(2);//赠送课时
        course.setClassPrice(new BigDecimal(3000));//课程价格
        course.setDiscountAmount(new BigDecimal(200));//优惠金额
        course.setDiscountType("YH01");//优惠方式
        course.setTotalClassHours(202);//总课时
        course.setTotalAmount(new BigDecimal(2800));
        course.setUnuseClassHours(202);

        //结算信息
        EduStudentSettle settle=new EduStudentSettle();
        settle.setAgentPerson("王晓霞");//经办人
        settle.setAgentPersonId("12324234234");
        settle.setStudentCourseId("qwqwq");//课程id
        settle.setPaidAmount(new BigDecimal(2800));
        settle.setPaidType("支付宝");
        settle.setPaidTime(new Date());
        settle.setBelongTo("万聪颖");
        settle.setBelongToId("sdfsdf1212121");




        dto.setEduStudent(student);
        dto.setTakesList(takesList);
        dto.setParentList(parentList);
        dto.setEduStudentCourse(course);
        dto.setEduStudentSettle(settle);

        return dto;
    }
}
